package org.jeecg.modules.quality.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.quality.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 质检表
 * @Author: jeecg-boot
 * @Date:   2020-07-23
 * @Version: V1.0
 */
public interface IQualityTestingService extends IService<QualityTesting> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(QualityTesting qualityTesting, List<QualityDetail> qualityDetailList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(QualityTesting qualityTesting, List<QualityDetail> qualityDetailList);

	/**
	 * 删除一对多
	 */
	public void delMain(String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

	IPage<QualityTestingVo> selectQualityTestingPage(Page<QualityTestingVo> page,QualityTestingVo qualityTestingVo);

	IPage<QualityReportingVo> selectQualityTestingByReportIdPage(Page<QualityReportingVo> page, QualityReportingVo qualityReportingVo,String isAll);

	void submitQuality(String reportId,Integer qualityCount);

	IPage<MyPhoneQualityVo> selectMyPhoneQualityPage(Page<MyPhoneQualityVo> page,MyPhoneQualityVo myPhoneQualityVo);
	boolean returnQuality(String id);

	QualityReportingVo selectQualityTestingByReportId(String reportId);

}
